package spring.springDemo;
/*
演讲人实体类
 */
public class President {
    private String message;

    private Manuscript manuscript;
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Manuscript getManuscript() {
        return manuscript;
    }

    public void setManuscript(Manuscript manuscript) {
        this.manuscript = manuscript;
    }
    public void speech() {
        System.out.println("大家好");
        manuscript.write();
    }
}
